an empty batch writes nothing